import {UPDATE_HEAD,UPDATE_BACKSHOW,UPDATE_FOOTER,UPDATE_PAGE_TITLE} from './data'
const state={
	headShow:true,
	backShow:false,
	footerShow:true,
	pageTitle:'活动列表'
};

const mutations={
	/*head*/
	[UPDATE_HEAD](state,type){
		state.headShow=type;
	},
	/*loading*/
	[UPDATE_BACKSHOW](state,type){
		state.backShow=type;
	},
	/*footer*/
	[UPDATE_FOOTER](state,type){
		state.footerShow=type;
	},
	/*title*/
	[UPDATE_PAGE_TITLE](state,type){
		state.pageTitle=type;
	}
};

const getters={
	headShow(state){
		return state.headShow;
	},
	backShow(state){
		return state.backShow;
	},
	footerShow(state){
		return state.footerShow;
	},
	pageTitle(state){
		return state.pageTitle;
	}
};

export default{
	state,
	mutations,
	getters
}